#ifndef ROBOTWIDGET_H
#define ROBOTWIDGET_H

#include <QtGui/QFrame>
#include <QSettings>
#include <QTimer>
#include "robot.h"

namespace Ui {
    class RobotWidget;
}

class RobotWidget : public QFrame {
    Q_OBJECT
private:
    Ui::RobotWidget *m_ui;
    Robot *robot;
public:
    RobotWidget(quint16 id, QString host, quint16 port, Camera *camera, QColor *color = 0, QWidget *parent = 0);
    virtual ~RobotWidget();
    void setLogTextEdit(QTextEdit *logTextEdit);
    Robot* getRobot();
private:
    void updateColorSample();

private slots:
    void on_colorSample_clicked();
    void on_modeButton_clicked();
    void on_closeButton_clicked();
    void on_sendButton_clicked();
    void on_reconnectButton_clicked();
    void setColor(const QColor color);
};

#endif // ROBOTWIDGET_H
